@extends('_layouts.blank')

@section('page-level-styles')
{{ HTML::style('assets/global/plugins/data-tables/DT_bootstrap.css') }}
{{ HTML::style('assets/global/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css') }}
{{ HTML::style('assets/global/plugins/bootstrap-modal/css/bootstrap-modal.css') }}
@stop

@section('page-level-plugins')
{{ HTML::script('assets/global/plugins/data-tables/jquery.dataTables.js') }}
{{ HTML::script('assets/global/plugins/data-tables/DT_bootstrap.js') }}
{{ HTML::script('assets/global/plugins/bootstrap-modal/js/bootstrap-modalmanager.js') }}
{{ HTML::script('assets/global/plugins/bootstrap-modal/js/bootstrap-modal.js') }}
@stop

@section('page-level-script')
{{ HTML::script('assets/global/scripts/datatable.js') }}
{{ HTML::script('assets/global/scripts/datatable.vi.js') }}
{{ HTML::script('assets/admin/pages/scripts/classes-list.js') }}
@stop

@section('jquery-document-ready')
ClassesList.init();
@stop

@section('breadcrumb-button')
<li class="btn-group">
    <button class="btn green {{ CNamHoa::getHideClass('class-create') }}" id="btn-new" data-href="{{ route('class-create') }}"><i class="fa fa-plus-circle"></i> {{ trans('system.button.new') }}</button>
</li>
@stop

@section('page-content')
<?php $isHide = CNamHoa::getHideClass('class-list', ['parameterInput' => ['sGroupActionName' => 'delete'], 'addClass' => 'hide']); ?>
<div id="ajax-modal" class="modal container fade" tabindex="-1"></div>
<div class="row">
    <div class="col-md-12">
        <!-- Begin: life time stats -->
        <div class="portlet">
            <div class="portlet-body">
                <div class="table-container">
                    <div class="table-actions-wrapper">
                        <span></span>
                        <select class="table-group-action-input form-control input-inline input-small input-sm">
                            <option value="">{{ trans('system.select') }}...</option>
                            <option class="{{$isHide}}" value="delete">{{ trans('system.button.delete') }}</option>
                        </select>
                        <button class="btn btn-sm blue table-group-action-submit"><i class="fa fa-check"></i> {{ trans('system.button.submit') }}</button>
                    </div>
                    <table class="table table-striped table-bordered table-hover" id="datatable_list" action="{{ route('class-list') }}">
                        <thead>
                            <tr role="row" class="heading">
                                <th width="1%">
                                    <input type="checkbox" class="group-checkable">
                                </th>
                                <th width="10%">
                                    {{ trans('classes.course') }}
                                </th>
                                <th width="15%">
                                    {{ trans('classes.team') }}
                                </th>
                                <th width="10%">
                                    {{ trans('classes.level') }}
                                </th>
                                <th width="10%">
                                    {{ trans('classes.crew') }}
                                </th>
                                <th width="10%">
                                    {{ trans('classes.location') }}
                                </th>
                                <th width="10%">
                                    {{ trans('system.note') }}
                                </th>
                                <th width="10%">
                                    {{ trans('system.actions') }}
                                </th>
                            </tr>
                            <tr role="row" class="filter">
                                <td></td>
                                <td>
                                    <input type="text" class="form-control form-filter input-sm" name="filter_course">
                                </td>
                                <td>
                                    <select name="filter_team" id="filter_team" class="form-control form-filter input-sm">
                                        <option value=""></option>
                                        @foreach($aTeams as $sKey => $sValue)
                                        <option value="{{ $sValue->key }}">{{ $sValue->data }}</option>
                                        @endforeach
                                    </select>
                                </td>
                                <td>
                                    <select name="filter_level" id="filter_level" class="form-control form-filter input-sm">
                                        <option value=""></option>
                                        @foreach($aLevels as $sKey => $sValue)
                                        <option value="{{ $sValue->key }}">{{ $sValue->data }}</option>
                                        @endforeach
                                    </select>
                                </td>
                                <td>
                                    <select name="filter_crew" id="filter_crew" class="form-control form-filter input-sm">
                                        <option value=""></option>
                                        @foreach($aCrews as $sKey => $sValue)
                                        <option value="{{ $sValue->key }}">{{ $sValue->data }}</option>
                                        @endforeach
                                    </select>
                                </td>
                                <td>
                                    <input type="text" class="form-control form-filter input-sm" name="filter_location">
                                </td>
                                <td>
                                </td>
                                <td>
                                    <button class="btn btn-sm yellow filter-submit margin-bottom display-hide"><i class="fa fa-search"></i> {{ trans('system.search') }}</button>
                                    <button class="btn btn-sm default filter-cancel"><i class="fa fa-refresh"></i> {{ trans('system.button.reset') }}</button>
                                </td>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <!-- End: life time stats -->
    </div>
</div>
@stop